package com.chinawayltd.ews.sample.service.task.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.chinawayltd.ews.sample.mapper.task.TaskEventExtendMapper;
import com.chinawayltd.ews.sample.model.task.TaskEventVO;
import com.chinawayltd.ews.sample.service.task.TaskEventService;
import com.chinawayltd.ews.sample.web.query.TaskEventGirdQuery;

/**
 * @program: greeProject
 * @description 运输任务异常事件管理service
 * @author: chenxin
 * @create: 2018年4月27日 下午6:07:41
 */
@Service
public class TaskEventServiceImpl implements TaskEventService {

	@Autowired
	private TaskEventExtendMapper taskEventExtendMapper;
	
	@Override
	public List<TaskEventVO> getTaskEventList(Long taskId) throws Exception {
		return taskEventExtendMapper.getTaskEventList(taskId);
	}

	@Override
	public List<TaskEventVO> getAllTaskEventList(TaskEventGirdQuery queryParam) throws Exception {
		return taskEventExtendMapper.getAllTaskEventList(queryParam);
	}
	
}
